package com.neugh.mapper;

import com.neugh.entity.Orde;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sot
 * @since 2020-05-15
 */
public interface OrdeMapper extends BaseMapper<Orde> {

    //根据订单id查询
    Orde seleOrde(@Param("userId") Integer userId);

    //添加手机订单
    boolean addOrderS(@Param("order") Orde orde);

    List<Orde> selectByIdOrde(@Param("shopId") int shopId);

   /* boolean insertOrde(
            @Param("orderNum") String orderNum,
            @Param("addressId") String addressId,
            @Param("userId") int userId,
            @Param("shopId") String shopId,
            @Param("orderUme") String orderUme,
            @Param("rPhone") String rPhone,
            @Param("orderPrice") String orderPrice,
            @Param("alipayNum") String alipayNum);*/

   boolean insertOrde(@Param("orde") Orde orde);

}
